import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String str = in.nextLine();
        int sum1 = getLen(str);
        int sum2 = getChar(str);
        int sum3 = getNum(str);
        int sum4 = getSign(str);
        int all  = 0;
        if (sum2 == 20 && sum3 > 0 && sum4 > 0) {
            all = sum1 + sum2 + sum3 + sum4 + 5;
        } else if (sum2 == 10 && sum3 > 0 && sum4 > 0) {
            all = sum1 + sum2 + sum3 + sum4 + 3;
        } else if (sum2 == 10 && sum3 > 0 && sum4 == 0) {
            all = sum1 + sum2 + sum3 + sum4 + 2;
        } else {
            all = sum1 + sum2 + sum3 + sum4;
        }

        if (all >= 90) {
            System.out.print("VERY_SECURE");
        } else if (all >= 80) {
            System.out.print("SECURE");
        } else if (all >= 70) {
            System.out.print("VERY_STRONG");
        } else if (all >= 60) {
            System.out.print("STRONG");
        } else if (all >= 50) {
            System.out.print("AVERAGE");
        } else if (all >= 25) {
            System.out.print("WEAK");
        } else if (all >= 0) {
            System.out.print("VERY_WEAK");
        }

    }

    public static int getLen(String str) {
        if (str.length() <= 4) {
            return 5;
        } else if (str.length() <= 7 && str.length() >= 5) {
            return 10;
        } else if (str.length() >= 8) {
            return 25;
        }
        return 0;
    }

    public static int getChar(String str) {
        int small = 0;
        int big = 0;
        for (int i = 0; i < str.length(); i++) {
            if (str.charAt(i) >= 'a' && str.charAt(i) <= 'z') {
                small++;
            } else if (str.charAt(i) >= 'A' && str.charAt(i) <= 'Z') {
                big++;
            }
        }
        if (small > 0 && big > 0) {
            return 20;
        } else if (small > 0 || big > 0) {
            return 10;
        } else {
            return 0;
        }
    }

    public static int getNum(String str) {
        int num = 0;
        for (int i = 0; i < str.length(); i++) {
            if (str.charAt(i) >= '0' && str.charAt(i) <= '9') {
                num++;
            }
        }
        if(num > 1){
            return 20;
        }else if(num == 1){
            return 10;
        }else{
            return 0;
        }
    }

    public static int getSign(String str) {
        int sign = 0;
        for (int i = 0; i < str.length(); i++) {
            if (!(str.charAt(i) >= '0' && str.charAt(i) <= '9')
            && !(str.charAt(i) >= 'a' && str.charAt(i) <= 'z')
            && !(str.charAt(i) >= 'A' && str.charAt(i) <= 'Z')
            ) {
                sign++;
            }
        }
         if(sign > 1){
            return 25;
        }else if(sign == 1){
            return 10;
        }else{
            return 0;
        }
    }

}